package com.homework;

public class Computer {
     char color;
     int cpu;
     void show(){

    }

    Computer(char color,int cpu){
        this.color = color;
        this.cpu = cpu;
    }
    public void showComputer(){
        System.out.println("笔记本电脑的颜色为："+color+"\n笔记本电脑的CPU型号为："+cpu);
    }

            public static void main(String[] args) {
                Computer computer = new Computer('a',10);
                computer.showComputer();


        }

}

